package com.kl.feign.fallback;

import com.kl.domain.OrderDTO;
import com.kl.domain.WaybillDTO;
import com.kl.em.ConstantEnum;
import com.kl.em.Result;
import com.kl.feign.OrderServcieFeign;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class OrderServiceFeignFallback implements OrderServcieFeign {
    @Override
    public Result addOrder(List<OrderDTO> orders) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result updateOrder(OrderDTO orderDTO) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result<List<WaybillDTO>> likeWaybill(String status) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result updateWaybill(WaybillDTO waybillDTO) {
        return Result.build(ConstantEnum.FaillBack);
    }


    @Override
    public Result<OrderDTO> findOrderById(Long id) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result<List<OrderDTO>> findAll(Integer pageNumber, Integer pageSize) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result addWaybill(WaybillDTO waybillDTO) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result updateUpdateInformation(Long waybillId, String information, String status) {
        return Result.build(ConstantEnum.FaillBack);
    }


    @Override
    public Result deleteWaybill(Long waybillId) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result updateOrderAlyOrderNumber(String serialNumber, String alyOrderNumber) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result<WaybillDTO> findWaybill(Long waybillId) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result<List<WaybillDTO>> findWaybillByPhone(String consigneePhone) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result<List<OrderDTO>> findOrdertoPhone(String senderPhone) { return Result.build(ConstantEnum.FaillBack); }

    @Override
    public Result<List<WaybillDTO>> findWaybillByOrderId(Long orderId) { return Result.build(ConstantEnum.FaillBack); }

    @Override
    public Result<WaybillDTO> selectById(Long waybillId) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result<List<WaybillDTO>> selectByZhuang(Integer zhuangche, Long logisticsId) {
        return Result.build(ConstantEnum.FaillBack);

    }

    @Override
    public Result<WaybillDTO> testById(Long id) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result<WaybillDTO> selectbyId(Long waybillId) {
        return Result.build(ConstantEnum.FaillBack);
    }


}
